package com.qqtech.qquan.circle.service;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.circle.model.*;

public interface CircleMemberLogService extends BaseService<CircleMemberLog> {

	/**
	 * 是否第一次加入圈子
	 * @param userId
	 * @param circleId
	 * @return
	 */
	boolean isFirstJoinCircle(Integer userId, Integer circleId);

	/**
	 * 记录-成功加入圈子
	 * @param userId
	 * @param circleId
	 * @return
	 */
	int logJoinCircle(Integer userId, Integer circleId);
	
	/**
	 * 记录-被踢出圈子
	 * @param userId
	 * @param circleId
	 * @return
	 */
	int logKillOutCircle(Integer userId, Integer circleId);
	
	/**
	 * 记录-退出圈子
	 * @param userId
	 * @param circleId
	 * @return
	 */
	int logQuitOutCircle(Integer userId, Integer circleId);
}